package com.hao.tool.extra.cloud.module.yiyuan.res;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * description
 *
 * @author RuiHaoZ on CMHK.jx
 * @date 2020-07-25 11:09
 */
@Getter
@Setter
public class VehicleScoreResult {


    @JsonProperty("showapi_res_code")
    private Integer showApiResCode;

    @JsonProperty("showapi_res_error")
    private String showApiResError;

    @JsonProperty("showapi_res_body")
    private VehicleResult showApiResBody;

    @JsonProperty("showapi_res_id")
    private String showApiResId;

    @Getter
    @Setter
    @ToString
    public static class VehicleResult implements Serializable {
        private Integer count;
        private String carEngineCode;
        private String carCode;
        private String errorMsg;
        private String msg;
        private String carType;
        @JsonProperty("ret_code")
        private Integer retCode;
        private Boolean flag;
        private String carNumber;
        private Integer errorCode;
        private Long createDate;
        private List<Record> records;

        @Getter
        @Setter
        @ToString
        public static class Record implements Serializable {
            private String time;
            private String degree;
            private String reason;
            private String address;
            private String department;
            private String cityName;
            private String money;
            private String code;

            public Record() {

            }
        }

        private String createDateStr;


    }
}
